package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorThreeMapper;
import com.erms.lab.domain.LabMajorThree;
import com.erms.lab.service.ILabMajorThreeService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房三Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorThreeServiceImpl implements ILabMajorThreeService 
{
    @Autowired
    private LabMajorThreeMapper labMajorThreeMapper;

    /**
     * 查询专业机房三
     * 
     * @param equipId 专业机房三ID
     * @return 专业机房三
     */
    @Override
    public LabMajorThree selectLabMajorThreeById(Long equipId)
    {
        return labMajorThreeMapper.selectLabMajorThreeById(equipId);
    }

    /**
     * 查询专业机房三列表
     * 
     * @param labMajorThree 专业机房三
     * @return 专业机房三
     */
    @Override
    public List<LabMajorThree> selectLabMajorThreeList(LabMajorThree labMajorThree)
    {
        return labMajorThreeMapper.selectLabMajorThreeList(labMajorThree);
    }

    /**
     * 新增专业机房三
     * 
     * @param labMajorThree 专业机房三
     * @return 结果
     */
    @Override
    public int insertLabMajorThree(LabMajorThree labMajorThree)
    {
        return labMajorThreeMapper.insertLabMajorThree(labMajorThree);
    }

    /**
     * 修改专业机房三
     * 
     * @param labMajorThree 专业机房三
     * @return 结果
     */
    @Override
    public int updateLabMajorThree(LabMajorThree labMajorThree)
    {
        return labMajorThreeMapper.updateLabMajorThree(labMajorThree);
    }

    /**
     * 删除专业机房三对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorThreeByIds(String ids)
    {
        return labMajorThreeMapper.deleteLabMajorThreeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房三信息
     * 
     * @param equipId 专业机房三ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorThreeById(Long equipId)
    {
        return labMajorThreeMapper.deleteLabMajorThreeById(equipId);
    }
}
